package com.ds.lens.data.common.document;

import com.ds.lens.data.common.constant.MonitorStateEnum;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author WeiShaoying
 * @date 2019/11/11 下午4:56
 */
@Setter
@Getter
public class Triggered {
    private MonitorStateEnum state;
    private Boolean renotify;
    private String groupValue;
    private Long startTime;
    private Long endTime;
    private List<DataPoint> dataPoint;

    public Triggered(){}

    @Builder
    public Triggered(MonitorStateEnum state,
                     String groupValue,
                     Long startTime,
                     Long endTime,
                     List<DataPoint> dataPoint) {
        this.state = state;
        this.groupValue = groupValue;
        this.startTime = startTime;
        this.endTime = endTime;
        this.dataPoint = dataPoint;
        this.renotify = false;
    }
}
